package com.sample.zoomableimageview;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.Menu;

import com.example.helloworld.R;

public class MainActivity extends Activity {

	ZoomableImageView mView =	null;
			
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_sample_zoomableimageview);
		
		mView =	(ZoomableImageView)findViewById(R.id.ziv);
		Bitmap bitmap =	BitmapFactory.decodeResource(getResources(), R.drawable.activity_lifecycle);
		//Bitmap bitmap =	BitmapFactory.decodeResource(getResources(), R.drawable.apple);
		
		mView.setImageBitmap(bitmap);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
